Home > @magiclane/maps-sdk > RectType > fromJson
RectType.fromJson() method
Signature:
static fromJson<T extends number>(json: {
x?: T;
y?: T;
width?: T;
height?: T;
}): RectType<T>;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
json |
{ x?: T; y?: T; width?: T; height?: T; } |
json properties:
- Optional x?: T
- Optional y?: T
- Optional width?: T
- Optional height?: T
Returns:
RectType<T>